home *** CD-ROM | disk | FTP | other *** search
- #
- # Use this function to fit sound velocity data as function of
- # sound propagation direction, indicated by its angle against the
- # z-axis of an hexagonal symmetry coordinate system
- #
- # Adjustable parameters:
- #
- # c33, c11, c13, c44 elastic moduli - materials constants
- # phi0 angle offset
- #
-
- rho = 1000.0 # density in kg/m3
-
- phi(x) = (x - phi0)/360.0*2.0*pi
-
- main(x) = c11*sin(phi(x))**2 + c33*cos(phi(x))**2 + c44
- mixed(x) = sqrt( ((c11-c44)*sin(phi(x))**2 \
- + (c44-c33)*cos(phi(x))**2)**2 + \
- 4.0*sin(phi(x))**2 * cos(phi(x))**2 * (c13+c44)**2 )
-
- vlong(x) = sqrt(1.0/2.0/rho*(main(x) + mixed(x)))
- vtrans(x) = sqrt(1.0/2.0/rho*(main(x) - mixed(x)))
-
- #
- # Now take advantage of FIT_INDEX to realize a multi-branch fit
- #
-
- f(x) = FIT_INDEX > 37 ? vlong(x) : vtrans(x)
-